home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / BARNET / COMPILER / SATHER / !Sather / Library / pSather / config / spinlock < prev    next >
Text File  |  1996-06-27  |  784b  |  37 lines

  1. #ifndef SPINLOCK_CONFIG
  2. #define SPINLOCK_CONFIG
  3.  
  4. #ifdef PP
  5. #undef PP
  6. #endif
  7.  
  8. #ifdef I
  9. #undef I
  10. #endif
  11.  
  12. #ifdef E
  13. #undef E
  14. #endif
  15.  
  16. #ifdef B
  17. #undef B
  18. #endif
  19.  
  20. #define PP    no_pre,no_post
  21. #define I    import
  22. #define E    export
  23. #define B    block
  24. #define V    var "@r $$;"
  25. #define VOL    volatile
  26.  
  27. -- most of the functions and macros used in this file are defined
  28. -- in am.h, the rest in pSather.h
  29. SPINLOCK_INIT:            PP,VOL,exec "SPINLOCK_CREATE($0);";
  30. SPINLOCK_L_LCK:            PP,VOL,exec "SPINLOCK_LCK($0);";
  31. SPINLOCK_L_UNLCK:        PP,VOL,exec "SPINLOCK_UNLCK($0);";
  32. SPINLOCK_L_TRY:            PP,VOL,V,exec "$$=SPINLOCK_TRY($0);" "$$";
  33. SPINLOCK_LCK:            PP,VOL,exec "spinlock_lck_remote($0);";
  34. SPINLOCK_UNLCK:            PP,VOL,exec "spinlock_unlck_remote($0);";
  35. SPINLOCK_TRY:            PP,VOL,V,exec "$$=spinlock_try_remote($0);" "$$";
  36. #endif
  37.